﻿#pragma once
#include "Windows.h"

class Menu
{
public:
    Menu();
    ~Menu();
    void dealMenuMessage(HWND handle, UINT msg, WPARAM wParam, LPARAM lParam);
    void addButton(UINT uIDNewItem, LPCWSTR lpNewItem);
    void addSeparator();
    HMENU getMenu();
private:
    HMENU _hmenu = NULL;
    static const int MENU_EXIT = 0x05;
    static constexpr LPCWSTR LPCWSTR_EXIT = L"退出";
};
